package com.bfly.mall.order.event;

import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationEvent;

import java.util.Date;

/**
 * 订单支付事件
 *
 * @author 长沙商脉科技有限公司
 * @date 2020/12/14 21:42
 */
public class OrderPayEvent extends ApplicationEvent {
    private final ApplicationContext context;
    private final String orderNo;
    private final Date payTime;

    public OrderPayEvent(ApplicationContext ctx, String orderNo, Date payTime) {
        super(ctx);
        this.context = ctx;
        this.orderNo = orderNo;
        this.payTime = payTime;
    }

    public Date getPayTime() {
        return payTime;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public ApplicationContext getApplicationContext() {
        return this.context;
    }
}
